<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- <xsl:output method="xhtml" encoding="utf-8" indent="yes"/> -->
  
  <xsl:template match="/">
    <li id="node0" noDrag="true" noSiblings="true" noDelete="true" noRename="true"><a href="#">Project</a>
      <ul>
        <xsl:apply-templates select="project"/>
      </ul>
    </li>
  </xsl:template>
  
  <xsl:template match="project">
    <xsl:apply-templates select="dir"/>
    <xsl:apply-templates select="file"/>
  </xsl:template>
  
  <xsl:template match="dir">
    <li id="node"><a href="#"><xsl:value-of select="@name"/></a>
      <xsl:if test="./*">
        <ul>
          <xsl:apply-templates />
        </ul>
      </xsl:if>
    </li>
  </xsl:template>
  
  <xsl:template match="file">
    <li id="node" noChildren="true" class="dhtmlgoodies_sheet.gif">
      <a href="#" onclick="contentManager.loadContent('{@path}');"><xsl:value-of select="@path"/></a>
    </li>
  </xsl:template>
    
</xsl:stylesheet>